/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/*
 * TestNewJFrame.java
 *
 * Created on 19/07/2010, 09:14:00
 */

package swinghelloworld;

/**
 *
 * @author vntraal
 */
public class TestNewJFrame extends javax.swing.JFrame {

    /** Creates new form TestNewJFrame */
    public TestNewJFrame() {
        initComponents();
    }

    /** This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        jPanel1 = new javax.swing.JPanel();
        jToolBar1 = new javax.swing.JToolBar();
        jBtnNew = new javax.swing.JButton();
        jBtnEdit = new javax.swing.JButton();
        jBtnRemove = new javax.swing.JButton();
        jBtnSearch = new javax.swing.JButton();
        jSepSave = new javax.swing.JToolBar.Separator();
        jBtnSave = new javax.swing.JButton();
        jBtnCancel = new javax.swing.JButton();
        jSepExit = new javax.swing.JToolBar.Separator();
        jBtnExit = new javax.swing.JButton();
        jLayeredPaneControl = new javax.swing.JLayeredPane();
        jPanelEdit = new javax.swing.JPanel();
        jLabelEditID = new javax.swing.JLabel();
        jTextFieldEditID = new javax.swing.JTextField();
        jPanelSearch = new javax.swing.JPanel();
        jScrollPaneSearch = new javax.swing.JScrollPane();
        jTableSearch = new javax.swing.JTable();
        jTextFieldSearchID = new javax.swing.JTextField();
        jLabelSearchID = new javax.swing.JLabel();
        jBtnExecSearch = new javax.swing.JButton();

        setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
        setName("Form"); // NOI18N

        org.jdesktop.application.ResourceMap resourceMap = org.jdesktop.application.Application.getInstance(swinghelloworld.SwingHelloWorldApp.class).getContext().getResourceMap(TestNewJFrame.class);
        jPanel1.setBackground(resourceMap.getColor("jPanel1.background")); // NOI18N
        jPanel1.setName("jPanel1"); // NOI18N

        jToolBar1.setBackground(resourceMap.getColor("jToolBar1.background")); // NOI18N
        jToolBar1.setRollover(true);
        jToolBar1.setName("jToolBar1"); // NOI18N

        javax.swing.ActionMap actionMap = org.jdesktop.application.Application.getInstance(swinghelloworld.SwingHelloWorldApp.class).getContext().getActionMap(TestNewJFrame.class, this);
        jBtnNew.setAction(actionMap.get("insertRecord")); // NOI18N
        jBtnNew.setBackground(resourceMap.getColor("jBtnNew.background")); // NOI18N
        jBtnNew.setIcon(null);
        jBtnNew.setText(resourceMap.getString("jBtnNew.text")); // NOI18N
        jBtnNew.setFocusable(false);
        jBtnNew.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);
        jBtnNew.setName("jBtnNew"); // NOI18N
        jBtnNew.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);
        jToolBar1.add(jBtnNew);

        jBtnEdit.setAction(actionMap.get("editRecord")); // NOI18N
        jBtnEdit.setBackground(resourceMap.getColor("jBtnEdit.background")); // NOI18N
        jBtnEdit.setIcon(null);
        jBtnEdit.setText(resourceMap.getString("jBtnEdit.text")); // NOI18N
        jBtnEdit.setFocusable(false);
        jBtnEdit.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);
        jBtnEdit.setName("jBtnEdit"); // NOI18N
        jBtnEdit.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);
        jToolBar1.add(jBtnEdit);

        jBtnRemove.setAction(actionMap.get("removeRecord")); // NOI18N
        jBtnRemove.setBackground(resourceMap.getColor("jBtnRemove.background")); // NOI18N
        jBtnRemove.setIcon(null);
        jBtnRemove.setText(resourceMap.getString("jBtnRemove.text")); // NOI18N
        jBtnRemove.setFocusable(false);
        jBtnRemove.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);
        jBtnRemove.setName("jBtnRemove"); // NOI18N
        jBtnRemove.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);
        jToolBar1.add(jBtnRemove);

        jBtnSearch.setAction(actionMap.get("searchRecord")); // NOI18N
        jBtnSearch.setBackground(resourceMap.getColor("jBtnSearch.background")); // NOI18N
        jBtnSearch.setIcon(null);
        jBtnSearch.setText(resourceMap.getString("jBtnSearch.text")); // NOI18N
        jBtnSearch.setFocusable(false);
        jBtnSearch.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);
        jBtnSearch.setName("jBtnSearch"); // NOI18N
        jBtnSearch.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);
        jToolBar1.add(jBtnSearch);

        jSepSave.setName("jSepSave"); // NOI18N
        jToolBar1.add(jSepSave);

        jBtnSave.setAction(actionMap.get("saveRecordChanges")); // NOI18N
        jBtnSave.setBackground(resourceMap.getColor("jBtnSave.background")); // NOI18N
        jBtnSave.setIcon(null);
        jBtnSave.setText(resourceMap.getString("jBtnSave.text")); // NOI18N
        jBtnSave.setFocusable(false);
        jBtnSave.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);
        jBtnSave.setName("jBtnSave"); // NOI18N
        jBtnSave.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);
        jToolBar1.add(jBtnSave);

        jBtnCancel.setAction(actionMap.get("cancelRecordChanges")); // NOI18N
        jBtnCancel.setBackground(resourceMap.getColor("jBtnCancel.background")); // NOI18N
        jBtnCancel.setIcon(null);
        jBtnCancel.setText(resourceMap.getString("jBtnCancel.text")); // NOI18N
        jBtnCancel.setFocusable(false);
        jBtnCancel.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);
        jBtnCancel.setName("jBtnCancel"); // NOI18N
        jBtnCancel.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);
        jToolBar1.add(jBtnCancel);

        jSepExit.setName("jSepExit"); // NOI18N
        jToolBar1.add(jSepExit);

        jBtnExit.setAction(actionMap.get("close")); // NOI18N
        jBtnExit.setBackground(resourceMap.getColor("jBtnExit.background")); // NOI18N
        jBtnExit.setIcon(null);
        jBtnExit.setText(resourceMap.getString("jBtnExit.text")); // NOI18N
        jBtnExit.setFocusable(false);
        jBtnExit.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);
        jBtnExit.setName("jBtnExit"); // NOI18N
        jBtnExit.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);
        jToolBar1.add(jBtnExit);

        jLayeredPaneControl.setBackground(resourceMap.getColor("jLayeredPaneControl.background")); // NOI18N
        jLayeredPaneControl.setName("jLayeredPaneControl"); // NOI18N

        jPanelEdit.setBackground(resourceMap.getColor("jPanelEdit.background")); // NOI18N
        jPanelEdit.setBorder(javax.swing.BorderFactory.createTitledBorder(resourceMap.getString("jPanelEdit.border.title"))); // NOI18N
        jPanelEdit.setName("jPanelEdit"); // NOI18N

        jLabelEditID.setText(resourceMap.getString("jLabelEditID.text")); // NOI18N
        jLabelEditID.setName("jLabelEditID"); // NOI18N

        jTextFieldEditID.setName("jTextFieldEditID"); // NOI18N

        javax.swing.GroupLayout jPanelEditLayout = new javax.swing.GroupLayout(jPanelEdit);
        jPanelEdit.setLayout(jPanelEditLayout);
        jPanelEditLayout.setHorizontalGroup(
            jPanelEditLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanelEditLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanelEditLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jTextFieldEditID, javax.swing.GroupLayout.PREFERRED_SIZE, 69, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLabelEditID))
                .addContainerGap(479, Short.MAX_VALUE))
        );
        jPanelEditLayout.setVerticalGroup(
            jPanelEditLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanelEditLayout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jLabelEditID)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jTextFieldEditID, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(12, Short.MAX_VALUE))
        );

        jPanelEdit.setBounds(0, 0, 570, 90);
        jLayeredPaneControl.add(jPanelEdit, javax.swing.JLayeredPane.DEFAULT_LAYER);

        jPanelSearch.setBackground(resourceMap.getColor("jPanelSearch.background")); // NOI18N
        jPanelSearch.setBorder(javax.swing.BorderFactory.createTitledBorder(resourceMap.getString("jPanelSearch.border.title"))); // NOI18N
        jPanelSearch.setName("jPanelSearch"); // NOI18N

        jScrollPaneSearch.setName("jScrollPaneSearch"); // NOI18N

        jTableSearch.setModel(new javax.swing.table.DefaultTableModel(
            new Object [][] {
                {null, null, null, null},
                {null, null, null, null},
                {null, null, null, null},
                {null, null, null, null}
            },
            new String [] {
                "Title 1", "Title 2", "Title 3", "Title 4"
            }
        ));
        jTableSearch.setName("jTableSearch"); // NOI18N
        jScrollPaneSearch.setViewportView(jTableSearch);

        jTextFieldSearchID.setName("jTextFieldSearchID"); // NOI18N

        jLabelSearchID.setText(resourceMap.getString("jLabelSearchID.text")); // NOI18N
        jLabelSearchID.setName("jLabelSearchID"); // NOI18N

        jBtnExecSearch.setText(resourceMap.getString("jBtnExecSearch.text")); // NOI18N
        jBtnExecSearch.setName("jBtnExecSearch"); // NOI18N

        javax.swing.GroupLayout jPanelSearchLayout = new javax.swing.GroupLayout(jPanelSearch);
        jPanelSearch.setLayout(jPanelSearchLayout);
        jPanelSearchLayout.setHorizontalGroup(
            jPanelSearchLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanelSearchLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanelSearchLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jLabelSearchID)
                    .addGroup(jPanelSearchLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
                        .addGroup(javax.swing.GroupLayout.Alignment.LEADING, jPanelSearchLayout.createSequentialGroup()
                            .addComponent(jTextFieldSearchID, javax.swing.GroupLayout.PREFERRED_SIZE, 73, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                            .addComponent(jBtnExecSearch))
                        .addComponent(jScrollPaneSearch, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.PREFERRED_SIZE, 489, javax.swing.GroupLayout.PREFERRED_SIZE)))
                .addContainerGap(59, Short.MAX_VALUE))
        );
        jPanelSearchLayout.setVerticalGroup(
            jPanelSearchLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanelSearchLayout.createSequentialGroup()
                .addGap(31, 31, 31)
                .addComponent(jLabelSearchID)
                .addGap(4, 4, 4)
                .addGroup(jPanelSearchLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jTextFieldSearchID, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jBtnExecSearch))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jScrollPaneSearch, javax.swing.GroupLayout.PREFERRED_SIZE, 124, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(80, 80, 80))
        );

        jPanelSearch.setBounds(0, 90, 570, 250);
        jLayeredPaneControl.add(jPanelSearch, javax.swing.JLayeredPane.DEFAULT_LAYER);

        javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);
        jPanel1.setLayout(jPanel1Layout);
        jPanel1Layout.setHorizontalGroup(
            jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel1Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanel1Layout.createSequentialGroup()
                        .addComponent(jToolBar1, javax.swing.GroupLayout.PREFERRED_SIZE, 569, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addContainerGap(59, Short.MAX_VALUE))
                    .addGroup(jPanel1Layout.createSequentialGroup()
                        .addComponent(jLayeredPaneControl, javax.swing.GroupLayout.DEFAULT_SIZE, 569, Short.MAX_VALUE)
                        .addGap(59, 59, 59))))
        );
        jPanel1Layout.setVerticalGroup(
            jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel1Layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jToolBar1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jLayeredPaneControl, javax.swing.GroupLayout.PREFERRED_SIZE, 357, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(50, Short.MAX_VALUE))
        );

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
        getContentPane().setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
        );

        pack();
    }// </editor-fold>//GEN-END:initComponents

    /**
    * @param args the command line arguments
    */
    public static void main(String args[]) {
        java.awt.EventQueue.invokeLater(new Runnable() {
            public void run() {
                new TestNewJFrame().setVisible(true);
            }
        });
    }

    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JButton jBtnCancel;
    private javax.swing.JButton jBtnEdit;
    private javax.swing.JButton jBtnExecSearch;
    private javax.swing.JButton jBtnExit;
    private javax.swing.JButton jBtnNew;
    private javax.swing.JButton jBtnRemove;
    private javax.swing.JButton jBtnSave;
    private javax.swing.JButton jBtnSearch;
    private javax.swing.JLabel jLabelEditID;
    private javax.swing.JLabel jLabelSearchID;
    private javax.swing.JLayeredPane jLayeredPaneControl;
    private javax.swing.JPanel jPanel1;
    private javax.swing.JPanel jPanelEdit;
    private javax.swing.JPanel jPanelSearch;
    private javax.swing.JScrollPane jScrollPaneSearch;
    private javax.swing.JToolBar.Separator jSepExit;
    private javax.swing.JToolBar.Separator jSepSave;
    private javax.swing.JTable jTableSearch;
    private javax.swing.JTextField jTextFieldEditID;
    private javax.swing.JTextField jTextFieldSearchID;
    private javax.swing.JToolBar jToolBar1;
    // End of variables declaration//GEN-END:variables

}
